package com.yuzhitong.shapi.model;

import com.yuzhitong.shapi.base.Contents;
import com.yuzhitong.shapi.base.net.BaseObjectBean;
import com.yuzhitong.shapi.bean.UpdateBean;
import com.yuzhitong.shapi.contract.UpdateContract;
import com.yuzhitong.shapi.net.RetrofitClient;

import java.util.Map;

import io.reactivex.rxjava3.core.Observable;

/**
 * Created by Brsya
 * CreateDate: 2022/4/29  18:03
 * Description:
 * 版本更新
 */
public class UpdateModel implements UpdateContract.Model {
    @Override
    public Observable<BaseObjectBean<UpdateBean>> getUpdateLog(Map<String, Object> par) {
        return RetrofitClient.getInstance().getApi().update(Contents.BASE_URL + "/AppVersion/update", par);
    }
}
